package cn.ibizlab.odoo.core.odoo_account.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_account.domain.Account_register_payments;
import cn.ibizlab.odoo.core.odoo_account.filter.Account_register_paymentsSearchContext;

/**
 * 实体[Account_register_payments] 服务对象接口
 */

public interface IAccount_register_paymentsService{
     void updateBatch(List<Account_register_payments> account_register_paymentss, int batchSize) ;
     Account_register_payments get(Integer id) ;
     Account_register_payments get(Account_register_payments account_register_payments) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean create(Account_register_payments account_register_payments) ;
     boolean update(Account_register_payments account_register_payments) ;
     void createBatch(List<Account_register_payments> account_register_paymentss, int batchSize) ;
     boolean remove(Integer id) ;

    /**
     * 查询集合 默认查询
     */
    Page<Account_register_payments> searchDefault(Account_register_paymentsSearchContext context) ;

    /**
     * 根据科目查询
     */
     Page<Account_register_payments> selectByOdoo_writeoff_account(Integer id) ;

    /**
     * 根据日记账查询
     */
     Page<Account_register_payments> selectByOdoo_journal(Integer id) ;

    /**
     * 根据付款方法查询
     */
     Page<Account_register_payments> selectByOdoo_payment_method(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Account_register_payments> selectByOdoo_currency(Integer id) ;

    /**
     * 根据银行账户查询
     */
     Page<Account_register_payments> selectByOdoo_partner_bank_account(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Account_register_payments> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_register_payments> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_register_payments> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Account_register_payments convert2Domain(cn.ibizlab.odoo.core.client.model.Iaccount_register_payments model ,Account_register_payments domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iaccount_register_payments convert2Model(Account_register_payments domain , cn.ibizlab.odoo.core.client.model.Iaccount_register_payments model);

}
